﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Edit.Master"  AutoEventWireup="true"  CodeBehind="Sys_BuDataCategory_Edit.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManager.Init.Sys_BuDataCategory_Edit"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtID.UniqueID%>:{required: true,maxlength: 36},
					<%= txtName.UniqueID%>:{required: true,maxlength: 200},
					<%= txtTableName.UniqueID%>:{required: true,maxlength: 200},
					<%= txtPKFiled.UniqueID%>:{required: true,maxlength: 200},
					<%= txtCodeFiled.UniqueID%>:{required: true,maxlength: 200},
					<%= txtNameFiled.UniqueID%>:{required: true,maxlength: 200}					
                 },
                 messages:
                 {
					<%= txtID.UniqueID%>:{required: "业务编码 请输入合适的值",maxlength: "业务编码 最多只能输入36个字符"},
					<%= txtName.UniqueID%>:{required: "名称 请输入合适的值",maxlength: "名称 最多只能输入200个字符"},
					<%= txtTableName.UniqueID%>:{required: "单据表名 请输入合适的值",maxlength: "单据表名 最多只能输入200个字符"},
					<%= txtPKFiled.UniqueID%>:{required: "单据主键字段 请输入合适的值",maxlength: "单据主键字段 最多只能输入200个字符"},
					<%= txtCodeFiled.UniqueID%>:{required: "单据编码字段 请输入合适的值",maxlength: "单据编码字段 最多只能输入200个字符"},
					<%= txtNameFiled.UniqueID%>:{required: "单据名称字段 请输入合适的值",maxlength: "单据名称字段 最多只能输入200个字符"}					
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">业务数据类别维护（注册业务数据，用于进行数据权限控制维护）</th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
		<tr>
			<td style="width:90px;" class="title1">业务编码</td>
			<td><asp:TextBox ID="txtID" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
			<td style="width:90px;" class="title1">名称</td>
			<td><asp:TextBox ID="txtName" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">单据表名</td>
			<td><asp:TextBox ID="txtTableName" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td class="title1">单据主键字段</td>
			<td><asp:TextBox ID="txtPKFiled" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
        <tr>
			<td class="title1">父节点字段</td>
			<td><asp:TextBox ID="txtParentFiled" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td class="title1">是否有效</td>
			<td><asp:CheckBox ID="chkIsValid" runat="server"></asp:CheckBox></td>
		</tr>
		<tr>
			<td class="title1">单据编码字段</td>
			<td>           
            <asp:TextBox ID="txtCodeFiled" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td class="title1">单据名称字段</td>
			<td><asp:TextBox ID="txtNameFiled" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">数据库连接串名</td>
			<td colspan="3">
            <span style="color:Red;font-family:宋体">说明：Honestysoft.BaseLibrary.config的connectionStrings节的name值</span>
            <asp:TextBox ID="txtConnStr" runat="server"  cssClass="input2" MaxLength="200" Width="98%"></asp:TextBox></td>
		</tr>
        <tr>            
			<td class="title1">过滤表达式</td>
			<td colspan="3">
            <span style="color:Red;font-family:宋体">说明：不带"Where"关键子</span>
            <asp:TextBox ID="txtFilterExpression" runat="server"  cssClass="input2" MaxLength="200" Width="98%"></asp:TextBox></td>
        </tr>
		<tr>
			<td class="title1">排序表达式</td>
			<td colspan="3">
            <span style="color:Red;font-family:宋体">说明：不带"Order by"关键子</span>
            <asp:TextBox ID="txtSortExpression" runat="server"  cssClass="input2" MaxLength="200" Width="98%"></asp:TextBox></td>
		</tr>
		
        </table>
        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" onclick="btnOK_Click"/>
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>


